﻿package plugin.union
{
    import cmd.*;
    import manager.*;
    import pluginfw.nio.*;

    public class UnionSender extends Object
    {

        public function UnionSender()
        {
            return;
        }// end function

        public static function _2getUnionList() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._2TOGETUNIONLIST, _loc_1);
            return;
        }// end function

        public static function _6createUnion(param1:String) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeString(param1);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._6TOCREATEUNION, _loc_2);
            return;
        }// end function

        public static function _4getUnionInfo(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._4TOGETUNIONINFO, _loc_2);
            return;
        }// end function

        public static function _8applyForAdd(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._8TOAPPLYTOJOIN, _loc_2);
            return;
        }// end function

        public static function _13showApply() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._13TOSHOWAPPLY, _loc_1);
            return;
        }// end function

        public static function _17autoAddSet(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._17TOAUTOADD, _loc_2);
            return;
        }// end function

        public static function _21agreeAdd(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._21TOAGREEADD, _loc_2);
            return;
        }// end function

        public static function _23dissolution() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._23DISSOLUTION, _loc_1);
            return;
        }// end function

        public static function _24changeNotice(param1:String) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeString(param1);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._24TOCHANGENOTICE, _loc_2);
            return;
        }// end function

        public static function _9agreeAdd(param1:Array) : void
        {
            var _loc_3:int = 0;
            var _loc_2:* = new Output();
            _loc_2.writeShort(param1.length);
            while (_loc_3 < param1.length)
            {
                
                _loc_2.writeVarInt(param1[_loc_3], false);
                _loc_3++;
            }
            PluginManager.instance.sendToBufferServer("union", CMDUnion._9TOAGREEADD, _loc_2);
            return;
        }// end function

        public static function _10refuseAdd(param1:Array) : void
        {
            var _loc_3:int = 0;
            var _loc_2:* = new Output();
            _loc_2.writeShort(param1.length);
            while (_loc_3 < length)
            {
                
                _loc_2.writeVarInt(param1[_loc_3], false);
                _loc_3++;
            }
            PluginManager.instance.sendToBufferServer("union", CMDUnion._10TOREFUSEDADD, _loc_2);
            return;
        }// end function

        public static function _26getSalaryInfo() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._26TOGETSALARYINFO, _loc_1);
            return;
        }// end function

        public static function _28getSalary() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._28TOGETSALARY, _loc_1);
            return;
        }// end function

        public static function _19unionInvite(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._19TOUNIONINVITE, _loc_2);
            return;
        }// end function

        public static function _30disagreeAdd(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._30IDSAGREEADD, _loc_2);
            return;
        }// end function

        public static function _31getTotem() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._31TOGETTOTEM, _loc_1);
            return;
        }// end function

        public static function _33upTotem(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._33TOUPTOTEM, _loc_2);
            return;
        }// end function

        public static function _35alliance(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._35TOALLIANCE, _loc_2);
            return;
        }// end function

        public static function _37refer(param1:Array) : void
        {
            var _loc_3:int = 0;
            var _loc_2:* = new Output();
            _loc_2.writeShort(param1.length);
            while (_loc_3 < param1.length)
            {
                
                if (param1[_loc_3] != null)
                {
                    _loc_2.writeByte(1);
                    _loc_2.writeVarInt(param1[_loc_3].id, false);
                    _loc_2.writeVarInt(param1[_loc_3].count, false);
                }
                else
                {
                    _loc_2.writeByte(0);
                }
                _loc_3++;
            }
            PluginManager.instance.sendToBufferServer("union", CMDUnion._37TOREFER, _loc_2);
            return;
        }// end function

        public static function _38beginAlliance(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._38TOBEGINALLIANCE, _loc_2);
            return;
        }// end function

        public static function _39endAlliance(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._39TOENDALLIANCE, _loc_2);
            return;
        }// end function

        public static function _40declarationOfWar(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._40TODECLARATIONOFWAR, _loc_2);
            return;
        }// end function

        public static function _41quit() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._41TOQUIT, _loc_1);
            return;
        }// end function

        public static function _43removeMember(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._43TOREMOVEMEMBER, _loc_2);
            return;
        }// end function

        public static function _44changePosition(param1:int, param2:int) : void
        {
            var _loc_3:* = new Output();
            _loc_3.writeVarInt(param1, false);
            _loc_3.writeVarInt(param2, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._44TOCHANGEPOSITION, _loc_3);
            return;
        }// end function

        public static function _47applyForAdd(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._47TOAPPLYFORADD, _loc_2);
            return;
        }// end function

        public static function _49openUnionBoss() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._49TOOPENUNIONBOSS, _loc_1);
            return;
        }// end function

        public static function _50getCkInfo() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._50TOGETCKINFO, _loc_1);
            return;
        }// end function

        public static function _52setCk(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._52TOSETCK, _loc_2);
            return;
        }// end function

        public static function _53destroyCk(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._53TODESTORYCK, _loc_2);
            return;
        }// end function

        public static function _55getCk(param1:int) : void
        {
            var _loc_2:* = new Output();
            _loc_2.writeVarInt(param1, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._55TOGETCK, _loc_2);
            return;
        }// end function

        public static function _58openUnionEms() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._58TOOPENUNIONEMS, _loc_1);
            return;
        }// end function

        public static function _60giveUpUnionEms() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._60TOGIVEUPUNIONEMS, _loc_1);
            return;
        }// end function

        public static function _62unionEmsJoin() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._62UNIONEMSJOIN, _loc_1);
            return;
        }// end function

        public static function _66getRedPacketInfo() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._66ReqRedPacketInfo, _loc_1);
            return;
        }// end function

        public static function _68sendRedPacket(param1:int, param2:int) : void
        {
            var _loc_3:* = new Output();
            _loc_3.writeVarInt(param1, false);
            _loc_3.writeVarInt(param2, false);
            PluginManager.instance.sendToBufferServer("union", CMDUnion._68ReqReqSendRedPacket, _loc_3);
            return;
        }// end function

        public static function _69sendRedPacket() : void
        {
            var _loc_1:* = new Output();
            PluginManager.instance.sendToBufferServer("union", CMDUnion._69ReqSendRedPacket, _loc_1);
            return;
        }// end function

    }
}
